Move documentation to inline comments: GtkCheckButton
authorJavier Jardón <jjardon@gnome.org>
Wed, 13 Apr 2011 11:25:06 +0000 (12:25 +0100)
committerJavier Jardón <jjardon@gnome.org>
Wed, 13 Apr 2011 11:25:06 +0000 (12:25 +0100)
docs/reference/gtk/tmpl/.gitignore
docs/reference/gtk/tmpl/gtkcheckbutton.sgml [deleted file]
gtk/gtkcheckbutton.c

index 4da0086f81925e40162408b7eb5787bf05ca21ed..3679f03047f31b3af46f41356a17b994a202f680 100644 (file)
@@ -19,6 +19,7 @@ gtkcellrendererspin.sgml
 gtkcellrenderertext.sgml
 gtkcellrenderertoggle.sgml
 gtkcellview.sgml
+gtkcheckbutton.sgml
 gtkcolorbutton.sgml
 gtkcolorsel.sgml
 gtkcombobox.sgml
diff --git a/docs/reference/gtk/tmpl/gtkcheckbutton.sgml b/docs/reference/gtk/tmpl/gtkcheckbutton.sgml
deleted file mode 100644 (file)
index 0e6313d..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-<!-- ##### SECTION Title ##### -->
-GtkCheckButton
-
-<!-- ##### SECTION Short_Description ##### -->
-Create widgets with a discrete toggle button
-
-<!-- ##### SECTION Long_Description ##### -->
-<para>
-A #GtkCheckButton places a discrete #GtkToggleButton next to a widget, (usually a #GtkLabel). See the section on #GtkToggleButton widgets for more information about toggle/check buttons.
-</para>
-<para>
-The important signal ('toggled') is also inherited from #GtkToggleButton.
-</para>
-
-<!-- ##### SECTION See_Also ##### -->
-<para>
-<variablelist>
-<varlistentry>
-<term>#GtkCheckMenuItem</term>
-<listitem><para>add check buttons to your menus.</para></listitem>
-</varlistentry>
-<varlistentry>
-<term>#GtkButton</term>
-<listitem><para>a more general button.</para></listitem>
-</varlistentry>
-<varlistentry>
-<term>#GtkToggleButton</term>
-<listitem><para>#GtkCheckButton's parent.</para></listitem>
-</varlistentry>
-<varlistentry>
-<term>#GtkRadioButton</term>
-<listitem><para>group check buttons together.</para></listitem>
-</varlistentry>
-</variablelist>
-</para>
-
-<!-- ##### SECTION Stability_Level ##### -->
-
-
-<!-- ##### SECTION Image ##### -->
-
-
-<!-- ##### STRUCT GtkCheckButton ##### -->
-<para>
-<structfield>toggle_button</structfield> is a #GtkToggleButton representing the actual toggle button that composes the check button.
-</para>
-
-
-<!-- ##### ARG GtkCheckButton:indicator-size ##### -->
-<para>
-
-</para>
-
-<!-- ##### ARG GtkCheckButton:indicator-spacing ##### -->
-<para>
-
-</para>
-
-<!-- ##### FUNCTION gtk_check_button_new ##### -->
-<para>
-Creates a new #GtkCheckButton.
-</para>
-
-@void: 
-@Returns: a #GtkWidget.
-
-
-<!-- ##### FUNCTION gtk_check_button_new_with_label ##### -->
-<para>
-Creates a new #GtkCheckButton with a #GtkLabel to the right of it.
-</para>
-
-@label: the text for the check button.
-@Returns: a #GtkWidget.
-
-
-<!-- ##### FUNCTION gtk_check_button_new_with_mnemonic ##### -->
-<para>
-
-</para>
-
-@label: 
-@Returns: 
-
-
index 5b9d35d3c5ceff35d21d3598eb0ecc2b0b039fb9..9ceb6b1b28fe09cdbdc466bff03c8d531cd5b90d 100644 (file)
 #include "gtkintl.h"
 
 
+/**
+ * SECTION:gtkcheckbutton
+ * @Short_description: Create widgets with a discrete toggle button
+ * @Title: GtkCheckButton
+ * @See_also: #GtkCheckMenuItem, #GtkButton, #GtkToggleButton, #GtkRadioButton
+ *
+ * A #GtkCheckButton places a discrete #GtkToggleButton next to a widget,
+ * (usually a #GtkLabel). See the section on #GtkToggleButton widgets for
+ * more information about toggle/check buttons.
+ *
+ * The important signal ( #GtkToggleButton::toggled ) is also inherited from
+ * #GtkToggleButton.
+ */
+
+
 #define INDICATOR_SIZE     16
 #define INDICATOR_SPACING  2
 
@@ -99,6 +114,13 @@ gtk_check_button_init (GtkCheckButton *check_button)
   gtk_button_set_alignment (GTK_BUTTON (check_button), 0.0, 0.5);
 }
 
+/**
+ * gtk_check_button_new:
+ *
+ * Creates a new #GtkCheckButton.
+ *
+ * Returns: a #GtkWidget.
+ */
 GtkWidget*
 gtk_check_button_new (void)
 {
@@ -106,6 +128,14 @@ gtk_check_button_new (void)
 }
 
 
+/**
+ * gtk_check_button_new_with_label:
+ * @label: the text for the check button.
+ *
+ * Creates a new #GtkCheckButton with a #GtkLabel to the right of it.
+ *
+ * Returns: a #GtkWidget.
+ */
 GtkWidget*
 gtk_check_button_new_with_label (const gchar *label)
 {
@@ -115,7 +145,7 @@ gtk_check_button_new_with_label (const gchar *label)
 /**
  * gtk_check_button_new_with_mnemonic:
  * @label: The text of the button, with an underscore in front of the
- *         mnemonic character
+ *   mnemonic character
  * @returns: a new #GtkCheckButton
  *
  * Creates a new #GtkCheckButton containing a label. The label